import { createRouter, createWebHistory } from "vue-router";
import Home from "@/pages/Home.vue";
import Splash from "@/pages/Splash.vue";
import PhotoAlbum from "@/pages/PhotoAlbum.vue";

const routes = [
  {
    path: "/",
    name: "Splash",
    component: Splash,
  },
  {
    path: "/home",
    name: "Home",
    component: Home,
  },
  {
    path: "/video-player",
    name: "VideoPlayer",
    component: () => import("@/pages/VideoPlayer.vue"),
  },
  {
    path: "/photo-album",
    name: "PhotoAlbum",
    component: () => import("@/pages/PhotoAlbum.vue"),
  },
  {
    path: "/characters",
    name: "Characters",
    component: () => import("@/pages/Characters.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
});

export default router;
